/*
 * @[H]:  Copyright (c) 2021 Phytium Information Technology, Inc. 
 * 
 *  SPDX-License-Identifier: Apache-2.0. 
 * 
 * @Date: 2021-07-14 22:50:11
 * @LastEditTime: 2021-07-15 10:33:51
 * @Description:  Description of file
 * @Modify History: 
 * * * Ver   Who        Date         Changes
 * * ----- ------     --------    --------------------------------------
 */

#ifndef BSP_DRIVERS_IOMUX_F_IOMUX_H
#define BSP_DRIVERS_IOMUX_F_IOMUX_H

#ifdef __cplusplus
extern "C"
{
#endif
#include "parameters.h"
#include "ft_types.h"
    typedef enum
    {
        FUN0 = 0,
        FUN1 = 1,
        FUN2 = 2,
        FUN3 = 3
    } PadFun;

    typedef enum
    {
        PAD_PULL_NONE = 0,
        PAD_PULL_DOWN = 1,
        PAD_PULL_UP = 2
    } PadPull;

    void FIomuxSetFun(int pad_offset, PadFun fun);
    void FIomuxSetPull(int pad_offset, PadPull pull);

#ifdef __cplusplus
}
#endif

#endif // !